<?php

class UnitChange_Form_UnitChange_Update extends Zend_Form
{

	public function __construct(Zend_Controller_Action $controller)
	{
		//
		$unit_change_code = $this->createElement ( 'text', 'unit_change_code' )
		->setLabel ( $controller->getHelper('common')->getCaption('unit_change_code') )
		->setDescription($controller->getHelper('common')->getDescription('unit_change_code') )
		->setAttrib("class", "lock")
		;
		
		$unit_change_name = $this->createElement ( 'text', 'unit_change_name' )
		->setLabel ( $controller->getHelper('common')->getCaption('unit_change_name') )
		->setDescription($controller->getHelper('common')->getDescription('unit_change_name') )
		->setRequired ( true )
		;
		
		$this->addElements ( array (
			$unit_change_code,
			$unit_change_name,
		) );
		
		$controller->getHelper ( 'common' )->form ( $this );
	}
}